package com.grad.why.studentsystem.domain.current;

import java.util.List;

public class TreeNode implements java.io.Serializable{
    private String text;
    private List<TreeNode> nodes;
    private State state;

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<TreeNode> getNodes() {
        return nodes;
    }

    public void setNodes(List<TreeNode> nodes) {
        this.nodes = nodes;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "TreeNode{" +
                "text='" + text + '\'' +
                ", nodes=" + nodes +
                ", state=" + state +
                '}';
    }
}
